package com.yan.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author ：Yan Guang
 * @date ：Created in 2020/11/28 18:26
 * @description：
 */
@SpringBootApplication
@EnableEurekaClient //客户端
//ribbon和eureka整合以后，我们不用再去管IP地址和端口号了
//在微服务启动的时候就可以去加载我们自定义的Ribbon类
@EnableFeignClients(basePackages = {"com.yan.springcloud"}) //feign默认已经集成了我们的ribbon，所以我们直接写接口就可以了
public class DeptConsumer_feign {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_feign.class,args);
    }
}
